-- GENERATED SPELL FOR [Ssslith] --


function spell0_18154(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(12674,pUnit)
pUnit:RegisterEvent('Sorts_18154', 8319, 1)
end

function spell1_18154(pUnit, Event) --@Mana Shield,Self--
pUnit:FullCastSpellOnTarget(17741,pUnit)
pUnit:RegisterEvent('Sorts_18154', 587, 1)
end

function Sorts_18154(pUnit, Event)
local choix_sorts_18154 = math.random(0, 1)
if choix_sorts_18154 == 0 then
pUnit:RegisterEvent('spell0_18154', 1, 1)
end
if choix_sorts_18154 == 1 then
pUnit:RegisterEvent('spell1_18154', 1, 1)
end
end

function mob18154_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18154', math.random(1500, 3000), 1)
end

function mob18154_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18154_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18154_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18154, 1, 'mob18154_Action')
RegisterUnitEvent(18154, 2, 'mob18154_Leave')
RegisterUnitEvent(18154, 3, 'mob18154_Kill')
RegisterUnitEvent(18154, 4, 'mob18154_Die')
